package com.xjscrm.common.enums;

public enum WwGroupTaskTypeEnum {

    ASSIGNMENT__GROUP__LEADER(0,"转让群主"),

    set_group_manager(1,"设置群管"),

    update_group_name(2,"批量修改群名"),

    update_group_name_config(3,"批量改群名设置"),

    set_group_tag_rel(4,"批量打标签"),

    del_group_tag_rel(5,"批量删标签"),

    move_group_tag_rel(6,"批量移动标签")
    ;


    private Integer value;
    private String desc;

    WwGroupTaskTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static WwGroupTaskTypeEnum getById(Integer id) {
        if (id == null) {
            return null;
        }
        for (WwGroupTaskTypeEnum wwGroupTaskTypeEnum: WwGroupTaskTypeEnum.values()) {
            if (wwGroupTaskTypeEnum.getValue().intValue() == id) {
                return wwGroupTaskTypeEnum;
            }
        }
        return null;
    }
}
